package com.hshh.dao.impl;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.hshh.common.Constant;

public class CommonDAOImpl extends SqlSessionDaoSupport {

	protected Log log = LogFactory.getLog(this.getClass());

	public RowBounds pageRowBounds(Integer startPage) {
		if(startPage==null || startPage.equals("")) startPage = 0;
		return new RowBounds(startPage, Constant.ROW_PAGE_NUM);
	}
}